import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    // token:"啦啦啦啦",
    // accountName:"啊啦啦啦",
    // avatar:"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
    token:null,
    accountName:null,
    avatar:null
  },
  mutations: {
      setToken (state,token) {
      state.token=token;
    },
    setAccountName (state,accountName) {
      state.accountName=accountName;
    },
    setAvatar (state,avatar) {
      state.avatar=avatar;
    }
  }
});
export default store;
